home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ OEM Info CPU.xpl < prev    next >
Text File  |  1999-05-28  |  1KB  |  52 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="Appearance\OEM Information"
  5. "NAME"="CPU Information"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Type Text"
  8. "TEXT 2"="Vendor Text"
  9. "DESCRIPTION 1"="To see these values, select "Start" | "Settings" | "Control Panel" and click "System"."
  10. "DESCRIPTION 2"="Or, press WINDOWS+PAUSE."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14. "COMMENT 2"="Version 1.0"
  15.  
  16.  
  17.  
  18. sP1="HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0\"
  19. sV1="Identifier"
  20. sV2="VendorIdentifier"
  21.  
  22.  
  23. 'Called when the Plugin is started
  24. Sub Plugin_Initialize
  25.  if RegPathExists(sP1) then
  26.     s=RegReadValue(sP1 & sV1)
  27.     SetUIElement 1,s
  28.  
  29.     s=RegReadValue(sP1 & sV2)
  30.     SetUIElement 2,s
  31.  else
  32.     Disable
  33.  end if
  34. End Sub
  35.  
  36. 'Called when the Plugin should validate the Data the user has entered
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40. 'Called when the Plugin should apply the changes
  41. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  s=GetUIElement(1)
  43.  Call RegWriteValue(sP1 & sV1,s,1)
  44.  
  45.  s=GetUIElement(2)
  46.  Call RegWriteValue(sP1 & sV2,s,1)
  47. End Sub
  48.  
  49. 'Called when the Plugin is about to be removed from memory
  50. Sub Plugin_Terminate
  51. End Sub
  52.